From bcb13635fa503113c981c6ea7423f930c1548452 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Mon, 7 Nov 2016 16:32:01 +0100 Subject: [PATCH] libxc: set rsdp pointer for PVHv2 guests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Set the address of the RSDP in the HVM start info structure for PVHv2 DomUs that have ACPI tables. Signed-off-by: Roger Pau Monné Reviewed-by: Boris Ostrovsky Reviewed-by: Andrew Cooper Acked-by: Wei Liu Release-acked-by: Wei Liu --- tools/libxc/xc_dom_x86.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/libxc/xc_dom_x86.c b/tools/libxc/xc_dom_x86.c index 0eab8a74a7..6495e7fc30 100644 --- a/tools/libxc/xc_dom_x86.c +++ b/tools/libxc/xc_dom_x86.c @@ -1797,6 +1797,9 @@ static int bootlate_hvm(struct xc_dom_image *dom) modlist[0].size = dom->ramdisk_seg.vend - dom->ramdisk_seg.vstart; start_info->nr_modules = 1; } + + /* ACPI module 0 is the RSDP */ + start_info->rsdp_paddr = dom->acpi_modules[0].guest_addr_out ? : 0; } else { -- 2.30.2